package com.wangxl.shiro.web.service.impl;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;
import com.wangxl.shiro.web.dao.IAUsersDao;
import com.wangxl.shiro.web.pojo.AUsers;
import com.wangxl.shiro.web.service.IUsersService;

@Service("usersService")
public class UsersServiceImpl implements IUsersService
{
	@Resource
	private IAUsersDao usersDao;

	@Override
	public AUsers login(String nickname)
	{
		/* 应该从数据库查询用户 */
		
		/*AUsers user = this.usersDao.findOne(nickname);
		user.setNickname(nickname);
		 密码:111111 
		user.setPassword("4de0fe9cf9f47ce5af891d6182d6c4b7");*/
		return null;
	}

	@Override 
	public JSONObject saveOneUsersService(AUsers users)
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public JSONObject updateOneUsersService(AUsers users)
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public JSONObject deleteOneUsersService(Map<String, Object> condMap)
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public AUsers findOneUsersService(Map<String, Object> condMap)
	{
		// TODO Auto-generated method stub
		return this.usersDao.findOne(condMap);
	}

	@Override
	public Map<String, Object> findCondListUsersService(Map<String, Object> condMap)
	{
		// TODO Auto-generated method stub
		return null;
	}

}
